package com.sara.util;




import java.io.IOException;
import java.util.Properties;

public class Config {

    public static final String  ADMIN_PASSWORD_SALT = "dashduihdlwasdiow97@";
    public static final Integer REPLY_STATE_UNREVIEW = 0; // 未审核
    public static final Integer REPLY_STATE_SUCCESS = 1; // 通过
    public static final Integer REPLY_STATE_UNPASS = 2; // 未通过


    public static String get(String path) throws IOException {
       // TODO 因何读取properties配置文件
        Properties properties = new Properties();
        properties.load(Config.class.getClassLoader().getResourceAsStream("Config.properties"));
        String paths = properties.getProperty(path);
        return paths;
    }

}
